﻿using StarsAdmin.Core.Models;

namespace StarsAdmin.Application.Api.Dtos
{
    public class ApiDto : BaseDto
    {
        /// <summary>
        /// 所属模块
        /// </summary>
        public long ParentId { get; set; }

        public List<ApiDto> Children { get; set; } = new List<ApiDto>();

        /// <summary>
        /// 接口命名
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 接口注释
        /// </summary>
        public string Label { get; set; }

        /// <summary>
        /// 接口地址
        /// </summary>
        public string Path { get; set; }

        /// <summary>
        /// 接口提交方法
        /// </summary>
        public string HttpMethod { get; set; }

        /// <summary>
        /// 说明
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }

        /// <summary>
        /// 启用
        /// </summary>
        public bool IsEnabled { get; set; }
    }
}